<template>
  <el-table
    :data="data"
    border
    :header-cell-style="{'text-align':'center'}"
    :cell-style="{'text-align':'center'}"
    style="width: 100%;margin-top: 20px">
    <el-table-column
      prop="name"
      label="仓库"
      width="300">
    </el-table-column>
    <el-table-column
      prop="type"
      label="仓库类别"
      width="280">
    </el-table-column>
    <el-table-column
      prop="total"
      label="数量">
    </el-table-column>
  </el-table>
</template>

<script>
export default {
  props: {
    data: {
      type: Array,
      default: () => [],
    }
  },
  name: "stock",
  data() {
    return {}
  }
}
</script>

<style scoped>

</style>
